package com.yzjs.localhost.controller.tNeusoftResourceDictionaryCondition;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.yzjs.common.enumeration.RequestMethod;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import com.yzjs.common.base.entity.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yzjs.localhost.entity.tNeusoftResourceDictionaryCondition.TNeusoftResourceDictionaryConditionEntity;
import com.yzjs.localhost.service.tNeusoftResourceDictionaryCondition.TNeusoftResourceDictionaryConditionService;




/**
 * 数据资源查询条件
 *
 * @author yuqiumin
 * @email sunlightcs@gmail.com
 * @date 2021-09-02 10:49:41
 */
@Api(tags = "数据资源查询条件")
@RestController
@RequestMapping("tNeusoftResourceDictionaryCondition")
public class TNeusoftResourceDictionaryConditionController {
    @Autowired
    private TNeusoftResourceDictionaryConditionService tNeusoftResourceDictionaryConditionService;





    /**
    * 列表查询
    * @return
    */
    @ApiOperation(value="列表查询" ,httpMethod =RequestMethod.POST )
    @RequestMapping("/list")
    public List<TNeusoftResourceDictionaryConditionEntity> List( @RequestBody TNeusoftResourceDictionaryConditionEntity tNeusoftResourceDictionaryCondition) {

        List<TNeusoftResourceDictionaryConditionEntity> tNeusoftResourceDictionaryConditions = tNeusoftResourceDictionaryConditionService.findList(tNeusoftResourceDictionaryCondition);
        return tNeusoftResourceDictionaryConditions;
    }


    /**
     * 分页查询
     * @param tNeusoftResourceDictionaryCondition
     * @return
     */
    @ApiOperation(value="分页查询" ,httpMethod =RequestMethod.POST )
    @RequestMapping("/listPage")
    public PageInfo<TNeusoftResourceDictionaryConditionEntity> listPage(@RequestBody TNeusoftResourceDictionaryConditionEntity tNeusoftResourceDictionaryCondition) {
        List<TNeusoftResourceDictionaryConditionEntity> tNeusoftResourceDictionaryConditions  = tNeusoftResourceDictionaryConditionService.findList(tNeusoftResourceDictionaryCondition);
        return new PageInfo<>(tNeusoftResourceDictionaryConditions ,tNeusoftResourceDictionaryCondition);
    }



}
